import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
import api from './common/http/'
import store from './store'
import * as filters from '@/static/js/filter.js'
import RongIMLib from '@/static/js/IMSDK/RongIMLib-3.0.7-dev.js'
import wechat from '@/static/js/wx-jssdk/index.js'
import * as echarts from 'echarts';
// import imLink from '@/static/js/IMSDK/index.js'
const im = RongIMLib.init({ appkey: 'qf3d5gbjq9qxh' });

Vue.use(uView);
// console.log(echarts)
Vue.config.productionTip = false

Vue.prototype.$wx = wechat
Vue.prototype.$echarts = echarts
// Vue.prototype.$imLink = imLink

Vue.prototype.$api = api; //封装请求方法

Vue.prototype.$im = im;

App.mpType = 'app'

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

const app = new Vue({
    ...App,
	store
})
app.$mount()
